#include "form.h"
#include "ui_form.h"
#include "form_main.h"

Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_clicked()
{
    if(ui->lineEdit->text()=="huazhi"){

        if(ui->lineEdit_2->text()=="123456"){
            this->hide();
            win=new Form_main;
            win->show();
        }
    }
}
